package com.noahedu.style.span;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.text.Spanned;
import android.text.style.LineBackgroundSpan;

/**
 * 测试
 * 
 * 一行画背景
 * 
 */
public class LineBackgroundSpan33 implements LineBackgroundSpan
{

	
	/**
	 * 
	 * 
	 * left right 这一行的信息
	 * 
	 * lnum == 行号 第几行
	 * 
	 */
	@SuppressWarnings("unused")
	@Override
	public void drawBackground(Canvas c, Paint p, int left, int right, int top,
			int baseline, int bottom, CharSequence text, int start, int end,
			int lnum)
	{

		    int st = ((Spanned) text).getSpanStart(this);
			int tt = lnum ;
	        
			
	        
	        c.drawRect(left, top, right, bottom, p);
	        
	        
	}

}
